/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module CRT.h - CR600 CheckReader Definition Table header file |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Include/crt.h $ 
 * 
 * 2     2/21/00 2:59p Jim_b4
 * Include file restructuring
 * 
 * 1     1/07/00 9:21a Page_k1
 * Move CR600 from CCT to CRT
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/
#ifndef CRT_H
#ifndef INTRAN_H
#define CRT_H

#include <fields.h>

#define CRT_FILE_NAME         "crt.dat"

typedef struct TagCRT
{
    short     inCr600Com1Baud;                        /* 0, 2-6 300, 1200-19200 Baud */
    short     inCr600Com1Format;                      /* 0-2, 4;A7E1,A7N1,A7O1,A8N1 */
    short     inCr600Com1Handshake;                   /* 0,2; 0=none, 2=cts/rts */
    short     inCr600PassThru;                        /* 0=no, 1=yes */
    short     inCr600OutputFmt;                       /* any three digit number - 0 */
    char      szCr600ApplId[CRT_APPL_ID_SIZE + 1];    /* Application Id */
    char      szCr600TermId[CRT_TERM_ID_SIZE + 1];    /* Terminal Id */
    char      szCr600ZtPhone[PHONE_NUM_SIZE + 1];     /* Zontalk Phone # */
    
} CRT_REC;

#define SIZE_CRT_REC  sizeof(CRT_REC)

#define CKRDR_TYPE_NONE     0
#define CKRDR_TYPE_CR600    1
#define CKRDR_TYPE_OTHER    2

#define CKRDR_PORT_RS232    1
#define CKRDR_PORT_PIN_BAR  2
#define CKRDR_PORT_PRINTER  3

#define CKRDR_EXCEPT_NONE   0
#define CKRDR_EXCEPT_ADD    1
#define CKRDR_EXCEPT_CHANGE 2
#define CKRDR_EXCEPT_DELETE 3

#endif
#endif
